﻿namespace HauWei.RepUtils
{
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraPrinting.Control;
    using DevExpress.XtraPrinting.Preview;
    using DevExpress.XtraReports.UI;
    using DevExpress.XtraReports.UserDesigner;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.IO;
    using System.Reflection;
    using System.Windows.Forms;

    public class PreviewControl : ModuleControl
    {
        private BarButtonItem barButtonItem;
        private BarDockControl barDockControl;
        private BarDockControl barDockControl1;
        private BarDockControl barDockControl2;
        private BarStaticItem barStaticItem;
        private BarToolbarsListItem barToolbarsListItem;
        protected PrintBarManager fPrintBarManager;
        private BarDockControl gNojcAwmb;
        private IContainer icontainer;
        private PanelControl panelControl;
        private PanelControl panelControl1;
        private PreviewBar previewBar;
        private PreviewBar previewBar1;
        private PreviewBar previewBar2;
        protected PrintControl printControl;
        private PrintBarManager prnumBarManager;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem1;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem10;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem11;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem12;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem13;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem14;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem15;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem16;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem2;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem3;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem4;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem5;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem6;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem7;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem8;
        private PrintPreviewBarCheckItem prnumPreviewBarCheckItem9;
        private PrintPreviewBarItem prnumPreviewBarItem;
        private PrintPreviewBarItem prnumPreviewBarItem1;
        private PrintPreviewBarItem prnumPreviewBarItem10;
        private PrintPreviewBarItem prnumPreviewBarItem11;
        private PrintPreviewBarItem prnumPreviewBarItem12;
        private PrintPreviewBarItem prnumPreviewBarItem13;
        private PrintPreviewBarItem prnumPreviewBarItem14;
        private PrintPreviewBarItem prnumPreviewBarItem15;
        private PrintPreviewBarItem prnumPreviewBarItem16;
        private PrintPreviewBarItem prnumPreviewBarItem17;
        private PrintPreviewBarItem prnumPreviewBarItem18;
        private PrintPreviewBarItem prnumPreviewBarItem19;
        private PrintPreviewBarItem prnumPreviewBarItem2;
        private PrintPreviewBarItem prnumPreviewBarItem20;
        private PrintPreviewBarItem prnumPreviewBarItem21;
        private PrintPreviewBarItem prnumPreviewBarItem22;
        private PrintPreviewBarItem prnumPreviewBarItem23;
        private PrintPreviewBarItem prnumPreviewBarItem24;
        private PrintPreviewBarItem prnumPreviewBarItem25;
        private PrintPreviewBarItem prnumPreviewBarItem26;
        private PrintPreviewBarItem prnumPreviewBarItem27;
        private PrintPreviewBarItem prnumPreviewBarItem3;
        private PrintPreviewBarItem prnumPreviewBarItem4;
        private PrintPreviewBarItem prnumPreviewBarItem5;
        private PrintPreviewBarItem prnumPreviewBarItem6;
        private PrintPreviewBarItem prnumPreviewBarItem7;
        private PrintPreviewBarItem prnumPreviewBarItem8;
        private PrintPreviewBarItem prnumPreviewBarItem9;
        private PrintPreviewRepositoryItemComboBox prnumPreviewRepositoryItemComboBox;
        private PrintPreviewStaticItem prnumPreviewStaticItem;
        private PrintPreviewStaticItem prnumPreviewStaticItem1;
        private PrintPreviewSubItem prnumPreviewSubItem;
        private PrintPreviewSubItem prnumPreviewSubItem1;
        private PrintPreviewSubItem prnumPreviewSubItem2;
        private ProgressBarEditItem progressBarEditItem;
        private RepositoryItemProgressBar repositoryItemProgressBar;
        private SimpleButton simpleButton;
        private SimpleButton simpleButton1;
        private PrintPreviewSubItem xKuLshmXi;
        private PrintPreviewRepositoryItemComboBox printPreviewRepositoryItemComboBox1;
        private RepositoryItemProgressBar repositoryItemProgressBar1;
        private ZoomBarEditItem zoomBarEditItem;

        public PreviewControl()
        {
            this.InitializeComponent();
        }

        protected PrintBarManager CreatePrintBarManager(PrintControl pc)
        {
            PrintBarManager manager = new PrintBarManager();
            manager.Form = this.printControl;
            manager.Initialize(pc);
            manager.MainMenu.Visible = false;
            manager.AllowCustomization = false;
            return manager;
        }

        protected virtual void InitializeControls()
        {
        }

        private void method(object sender, ItemClickEventArgs e)
        {
            this.method4();
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PreviewControl));
            this.printControl = new DevExpress.XtraPrinting.Control.PrintControl();
            this.panelControl = new DevExpress.XtraEditors.PanelControl();
            this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
            this.simpleButton = new DevExpress.XtraEditors.SimpleButton();
            this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
            this.prnumBarManager = new DevExpress.XtraPrinting.Preview.PrintBarManager();
            this.previewBar = new DevExpress.XtraPrinting.Preview.PreviewBar();
            this.prnumPreviewBarItem = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem1 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem2 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem3 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem4 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem5 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem6 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem7 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem8 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem9 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem10 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem11 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem12 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem13 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.zoomBarEditItem = new DevExpress.XtraPrinting.Preview.ZoomBarEditItem();
            this.printPreviewRepositoryItemComboBox1 = new DevExpress.XtraPrinting.Preview.PrintPreviewRepositoryItemComboBox();
            this.prnumPreviewBarItem14 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem15 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem16 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem17 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem18 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem19 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem20 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem21 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem22 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem23 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem24 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.previewBar1 = new DevExpress.XtraPrinting.Preview.PreviewBar();
            this.prnumPreviewStaticItem = new DevExpress.XtraPrinting.Preview.PrintPreviewStaticItem();
            this.barStaticItem = new DevExpress.XtraBars.BarStaticItem();
            this.progressBarEditItem = new DevExpress.XtraPrinting.Preview.ProgressBarEditItem();
            this.repositoryItemProgressBar1 = new DevExpress.XtraEditors.Repository.RepositoryItemProgressBar();
            this.prnumPreviewBarItem25 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.barButtonItem = new DevExpress.XtraBars.BarButtonItem();
            this.prnumPreviewStaticItem1 = new DevExpress.XtraPrinting.Preview.PrintPreviewStaticItem();
            this.previewBar2 = new DevExpress.XtraPrinting.Preview.PreviewBar();
            this.xKuLshmXi = new DevExpress.XtraPrinting.Preview.PrintPreviewSubItem();
            this.prnumPreviewSubItem = new DevExpress.XtraPrinting.Preview.PrintPreviewSubItem();
            this.prnumPreviewSubItem1 = new DevExpress.XtraPrinting.Preview.PrintPreviewSubItem();
            this.prnumPreviewBarItem26 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.prnumPreviewBarItem27 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarItem();
            this.barToolbarsListItem = new DevExpress.XtraBars.BarToolbarsListItem();
            this.prnumPreviewSubItem2 = new DevExpress.XtraPrinting.Preview.PrintPreviewSubItem();
            this.barDockControl = new DevExpress.XtraBars.BarDockControl();
            this.barDockControl1 = new DevExpress.XtraBars.BarDockControl();
            this.barDockControl2 = new DevExpress.XtraBars.BarDockControl();
            this.gNojcAwmb = new DevExpress.XtraBars.BarDockControl();
            this.prnumPreviewBarCheckItem = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem1 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem2 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem3 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem4 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem5 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem6 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem7 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem8 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem9 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem10 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem11 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem12 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem13 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem14 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem15 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            this.prnumPreviewBarCheckItem16 = new DevExpress.XtraPrinting.Preview.PrintPreviewBarCheckItem();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl)).BeginInit();
            this.panelControl.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
            this.panelControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.prnumBarManager)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.printPreviewRepositoryItemComboBox1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemProgressBar1)).BeginInit();
            this.SuspendLayout();
            // 
            // printControl
            // 
            this.printControl.BackColor = System.Drawing.Color.Empty;
            this.printControl.Dock = System.Windows.Forms.DockStyle.Fill;
            this.printControl.ForeColor = System.Drawing.Color.Empty;
            this.printControl.IsMetric = false;
            this.printControl.Location = new System.Drawing.Point(2, 29);
            this.printControl.Name = "printControl";
            this.printControl.Size = new System.Drawing.Size(845, 286);
            this.printControl.TabIndex = 1;
            this.printControl.TabStop = false;
            this.printControl.TooltipFont = new System.Drawing.Font("Tahoma", 9F);
            // 
            // panelControl
            // 
            this.panelControl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
            this.panelControl.Controls.Add(this.printControl);
            this.panelControl.Controls.Add(this.panelControl1);
            this.panelControl.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelControl.Location = new System.Drawing.Point(0, 53);
            this.panelControl.Name = "panelControl";
            this.panelControl.Size = new System.Drawing.Size(849, 317);
            this.panelControl.TabIndex = 4;
            // 
            // panelControl1
            // 
            this.panelControl1.Controls.Add(this.simpleButton);
            this.panelControl1.Controls.Add(this.simpleButton1);
            this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panelControl1.Location = new System.Drawing.Point(2, 2);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new System.Drawing.Size(845, 27);
            this.panelControl1.TabIndex = 27;
            // 
            // simpleButton
            // 
            this.simpleButton.Dock = System.Windows.Forms.DockStyle.Right;
            this.simpleButton.Location = new System.Drawing.Point(743, 2);
            this.simpleButton.Name = "simpleButton";
            this.simpleButton.Size = new System.Drawing.Size(50, 23);
            this.simpleButton.TabIndex = 4;
            this.simpleButton.Tag = "-1";
            this.simpleButton.Text = "打印";
            this.simpleButton.Click += new System.EventHandler(this.simpleButton_Click);
            // 
            // simpleButton1
            // 
            this.simpleButton1.Dock = System.Windows.Forms.DockStyle.Right;
            this.simpleButton1.Location = new System.Drawing.Point(793, 2);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new System.Drawing.Size(50, 23);
            this.simpleButton1.TabIndex = 3;
            this.simpleButton1.Tag = "-1";
            this.simpleButton1.Text = "导出";
            this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
            // 
            // prnumBarManager
            // 
            this.prnumBarManager.AllowCustomization = false;
            this.prnumBarManager.AllowMoveBarOnToolbar = false;
            this.prnumBarManager.AllowQuickCustomization = false;
            this.prnumBarManager.AllowShowToolbarsPopup = false;
            this.prnumBarManager.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
            this.previewBar,
            this.previewBar1,
            this.previewBar2});
            this.prnumBarManager.CloseButtonAffectAllTabs = false;
            this.prnumBarManager.DockControls.Add(this.barDockControl);
            this.prnumBarManager.DockControls.Add(this.barDockControl1);
            this.prnumBarManager.DockControls.Add(this.barDockControl2);
            this.prnumBarManager.DockControls.Add(this.gNojcAwmb);
            this.prnumBarManager.Form = this;
            this.prnumBarManager.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("prnumBarManager.ImageStream")));
            this.prnumBarManager.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
            this.prnumPreviewStaticItem,
            this.barStaticItem,
            this.progressBarEditItem,
            this.prnumPreviewBarItem25,
            this.barButtonItem,
            this.prnumPreviewStaticItem1,
            this.prnumPreviewBarItem,
            this.prnumPreviewBarItem1,
            this.prnumPreviewBarItem2,
            this.prnumPreviewBarItem3,
            this.prnumPreviewBarItem4,
            this.prnumPreviewBarItem5,
            this.prnumPreviewBarItem6,
            this.prnumPreviewBarItem7,
            this.prnumPreviewBarItem8,
            this.prnumPreviewBarItem9,
            this.prnumPreviewBarItem10,
            this.prnumPreviewBarItem11,
            this.prnumPreviewBarItem12,
            this.prnumPreviewBarItem13,
            this.zoomBarEditItem,
            this.prnumPreviewBarItem14,
            this.prnumPreviewBarItem15,
            this.prnumPreviewBarItem16,
            this.prnumPreviewBarItem17,
            this.prnumPreviewBarItem18,
            this.prnumPreviewBarItem19,
            this.prnumPreviewBarItem20,
            this.prnumPreviewBarItem21,
            this.prnumPreviewBarItem22,
            this.prnumPreviewBarItem23,
            this.prnumPreviewBarItem24,
            this.xKuLshmXi,
            this.prnumPreviewSubItem,
            this.prnumPreviewSubItem2,
            this.prnumPreviewSubItem1,
            this.prnumPreviewBarItem26,
            this.prnumPreviewBarItem27,
            this.barToolbarsListItem,
            this.prnumPreviewBarCheckItem,
            this.prnumPreviewBarCheckItem1,
            this.prnumPreviewBarCheckItem2,
            this.prnumPreviewBarCheckItem3,
            this.prnumPreviewBarCheckItem4,
            this.prnumPreviewBarCheckItem5,
            this.prnumPreviewBarCheckItem6,
            this.prnumPreviewBarCheckItem7,
            this.prnumPreviewBarCheckItem8,
            this.prnumPreviewBarCheckItem9,
            this.prnumPreviewBarCheckItem10,
            this.prnumPreviewBarCheckItem11,
            this.prnumPreviewBarCheckItem12,
            this.prnumPreviewBarCheckItem13,
            this.prnumPreviewBarCheckItem14,
            this.prnumPreviewBarCheckItem15,
            this.prnumPreviewBarCheckItem16});
            this.prnumBarManager.MainMenu = this.previewBar2;
            this.prnumBarManager.MaxItemId = 56;
            this.prnumBarManager.PreviewBar = this.previewBar;
            this.prnumBarManager.PrintControl = this.printControl;
            this.prnumBarManager.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.repositoryItemProgressBar1,
            this.printPreviewRepositoryItemComboBox1});
            this.prnumBarManager.ShowFullMenusAfterDelay = false;
            this.prnumBarManager.StatusBar = this.previewBar1;
            // 
            // previewBar
            // 
            this.previewBar.BarName = "Toolbar";
            this.previewBar.DockCol = 0;
            this.previewBar.DockRow = 1;
            this.previewBar.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
            this.previewBar.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem1),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem2),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem3, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem4, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem5),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem6, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem7),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem8),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem9),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem10),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem11, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem12),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem13, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.zoomBarEditItem),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem14),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem15, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem16),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem17),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem18),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem19, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem20),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem21),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem22, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem23),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem24, true)});
            this.previewBar.OptionsBar.AllowQuickCustomization = false;
            this.previewBar.Text = "Toolbar";
            // 
            // prnumPreviewBarItem
            // 
            this.prnumPreviewBarItem.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
            this.prnumPreviewBarItem.Caption = "Document Map";
            this.prnumPreviewBarItem.Command = DevExpress.XtraPrinting.PrintingSystemCommand.DocumentMap;
            this.prnumPreviewBarItem.Enabled = false;
            this.prnumPreviewBarItem.Hint = "Document Map";
            this.prnumPreviewBarItem.Id = 6;
            this.prnumPreviewBarItem.ImageIndex = 19;
            this.prnumPreviewBarItem.Name = "prnumPreviewBarItem";
            this.prnumPreviewBarItem.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            // 
            // prnumPreviewBarItem1
            // 
            this.prnumPreviewBarItem1.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
            this.prnumPreviewBarItem1.Caption = "Parameters";
            this.prnumPreviewBarItem1.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Parameters;
            this.prnumPreviewBarItem1.Enabled = false;
            this.prnumPreviewBarItem1.Hint = "Parameters";
            this.prnumPreviewBarItem1.Id = 7;
            this.prnumPreviewBarItem1.ImageIndex = 22;
            this.prnumPreviewBarItem1.Name = "prnumPreviewBarItem1";
            this.prnumPreviewBarItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            // 
            // prnumPreviewBarItem2
            // 
            this.prnumPreviewBarItem2.Caption = "查找";
            this.prnumPreviewBarItem2.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Find;
            this.prnumPreviewBarItem2.Enabled = false;
            this.prnumPreviewBarItem2.Hint = "查找";
            this.prnumPreviewBarItem2.Id = 8;
            this.prnumPreviewBarItem2.ImageIndex = 20;
            this.prnumPreviewBarItem2.Name = "prnumPreviewBarItem2";
            // 
            // prnumPreviewBarItem3
            // 
            this.prnumPreviewBarItem3.Caption = "Customize";
            this.prnumPreviewBarItem3.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Customize;
            this.prnumPreviewBarItem3.Enabled = false;
            this.prnumPreviewBarItem3.Hint = "Customize";
            this.prnumPreviewBarItem3.Id = 9;
            this.prnumPreviewBarItem3.ImageIndex = 14;
            this.prnumPreviewBarItem3.Name = "prnumPreviewBarItem3";
            // 
            // prnumPreviewBarItem4
            // 
            this.prnumPreviewBarItem4.Caption = "Open";
            this.prnumPreviewBarItem4.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Open;
            this.prnumPreviewBarItem4.Enabled = false;
            this.prnumPreviewBarItem4.Hint = "Open a document";
            this.prnumPreviewBarItem4.Id = 10;
            this.prnumPreviewBarItem4.ImageIndex = 23;
            this.prnumPreviewBarItem4.Name = "prnumPreviewBarItem4";
            // 
            // prnumPreviewBarItem5
            // 
            this.prnumPreviewBarItem5.Caption = "Save";
            this.prnumPreviewBarItem5.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Save;
            this.prnumPreviewBarItem5.Enabled = false;
            this.prnumPreviewBarItem5.Hint = "Save the document";
            this.prnumPreviewBarItem5.Id = 11;
            this.prnumPreviewBarItem5.ImageIndex = 24;
            this.prnumPreviewBarItem5.Name = "prnumPreviewBarItem5";
            // 
            // prnumPreviewBarItem6
            // 
            this.prnumPreviewBarItem6.Caption = "打印...";
            this.prnumPreviewBarItem6.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Print;
            this.prnumPreviewBarItem6.Description = "Print";
            this.prnumPreviewBarItem6.Enabled = false;
            this.prnumPreviewBarItem6.Hint = "打印";
            this.prnumPreviewBarItem6.Id = 12;
            this.prnumPreviewBarItem6.ImageIndex = 0;
            this.prnumPreviewBarItem6.Name = "prnumPreviewBarItem6";
            // 
            // prnumPreviewBarItem7
            // 
            this.prnumPreviewBarItem7.Caption = "快速打印";
            this.prnumPreviewBarItem7.Command = DevExpress.XtraPrinting.PrintingSystemCommand.PrintDirect;
            this.prnumPreviewBarItem7.Enabled = false;
            this.prnumPreviewBarItem7.Hint = "快速打印";
            this.prnumPreviewBarItem7.Id = 13;
            this.prnumPreviewBarItem7.ImageIndex = 1;
            this.prnumPreviewBarItem7.Name = "prnumPreviewBarItem7";
            // 
            // prnumPreviewBarItem8
            // 
            this.prnumPreviewBarItem8.Caption = "页设置...";
            this.prnumPreviewBarItem8.Command = DevExpress.XtraPrinting.PrintingSystemCommand.PageSetup;
            this.prnumPreviewBarItem8.Enabled = false;
            this.prnumPreviewBarItem8.Hint = "页设置";
            this.prnumPreviewBarItem8.Id = 14;
            this.prnumPreviewBarItem8.ImageIndex = 2;
            this.prnumPreviewBarItem8.Name = "prnumPreviewBarItem8";
            // 
            // prnumPreviewBarItem9
            // 
            this.prnumPreviewBarItem9.Caption = "Header And Footer";
            this.prnumPreviewBarItem9.Command = DevExpress.XtraPrinting.PrintingSystemCommand.EditPageHF;
            this.prnumPreviewBarItem9.Enabled = false;
            this.prnumPreviewBarItem9.Hint = "Header And Footer";
            this.prnumPreviewBarItem9.Id = 15;
            this.prnumPreviewBarItem9.ImageIndex = 15;
            this.prnumPreviewBarItem9.Name = "prnumPreviewBarItem9";
            // 
            // prnumPreviewBarItem10
            // 
            this.prnumPreviewBarItem10.ActAsDropDown = true;
            this.prnumPreviewBarItem10.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
            this.prnumPreviewBarItem10.Caption = "比率";
            this.prnumPreviewBarItem10.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Scale;
            this.prnumPreviewBarItem10.Enabled = false;
            this.prnumPreviewBarItem10.Hint = "比率";
            this.prnumPreviewBarItem10.Id = 16;
            this.prnumPreviewBarItem10.ImageIndex = 25;
            this.prnumPreviewBarItem10.Name = "prnumPreviewBarItem10";
            // 
            // prnumPreviewBarItem11
            // 
            this.prnumPreviewBarItem11.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
            this.prnumPreviewBarItem11.Caption = "Hand Tool";
            this.prnumPreviewBarItem11.Command = DevExpress.XtraPrinting.PrintingSystemCommand.HandTool;
            this.prnumPreviewBarItem11.Enabled = false;
            this.prnumPreviewBarItem11.Hint = "Hand Tool";
            this.prnumPreviewBarItem11.Id = 17;
            this.prnumPreviewBarItem11.ImageIndex = 16;
            this.prnumPreviewBarItem11.Name = "prnumPreviewBarItem11";
            // 
            // prnumPreviewBarItem12
            // 
            this.prnumPreviewBarItem12.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
            this.prnumPreviewBarItem12.Caption = "放大镜";
            this.prnumPreviewBarItem12.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Magnifier;
            this.prnumPreviewBarItem12.Enabled = false;
            this.prnumPreviewBarItem12.Hint = "放大镜";
            this.prnumPreviewBarItem12.Id = 18;
            this.prnumPreviewBarItem12.ImageIndex = 3;
            this.prnumPreviewBarItem12.Name = "prnumPreviewBarItem12";
            // 
            // prnumPreviewBarItem13
            // 
            this.prnumPreviewBarItem13.Caption = "缩小";
            this.prnumPreviewBarItem13.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ZoomOut;
            this.prnumPreviewBarItem13.Enabled = false;
            this.prnumPreviewBarItem13.Hint = "缩小";
            this.prnumPreviewBarItem13.Id = 19;
            this.prnumPreviewBarItem13.ImageIndex = 5;
            this.prnumPreviewBarItem13.Name = "prnumPreviewBarItem13";
            // 
            // zoomBarEditItem
            // 
            this.zoomBarEditItem.Caption = "100%";
            this.zoomBarEditItem.Edit = this.printPreviewRepositoryItemComboBox1;
            this.zoomBarEditItem.EditValue = "100%";
            this.zoomBarEditItem.Enabled = false;
            this.zoomBarEditItem.Hint = "100%";
            this.zoomBarEditItem.Id = 20;
            this.zoomBarEditItem.Name = "zoomBarEditItem";
            this.zoomBarEditItem.Width = 70;
            // 
            // printPreviewRepositoryItemComboBox1
            // 
            this.printPreviewRepositoryItemComboBox1.AutoComplete = false;
            this.printPreviewRepositoryItemComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.printPreviewRepositoryItemComboBox1.DropDownRows = 11;
            this.printPreviewRepositoryItemComboBox1.Name = "printPreviewRepositoryItemComboBox1";
            // 
            // prnumPreviewBarItem14
            // 
            this.prnumPreviewBarItem14.Caption = "放大";
            this.prnumPreviewBarItem14.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ZoomIn;
            this.prnumPreviewBarItem14.Enabled = false;
            this.prnumPreviewBarItem14.Hint = "放大";
            this.prnumPreviewBarItem14.Id = 21;
            this.prnumPreviewBarItem14.ImageIndex = 4;
            this.prnumPreviewBarItem14.Name = "prnumPreviewBarItem14";
            // 
            // prnumPreviewBarItem15
            // 
            this.prnumPreviewBarItem15.Caption = "首页";
            this.prnumPreviewBarItem15.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ShowFirstPage;
            this.prnumPreviewBarItem15.Enabled = false;
            this.prnumPreviewBarItem15.Hint = "首页";
            this.prnumPreviewBarItem15.Id = 22;
            this.prnumPreviewBarItem15.ImageIndex = 7;
            this.prnumPreviewBarItem15.Name = "prnumPreviewBarItem15";
            // 
            // prnumPreviewBarItem16
            // 
            this.prnumPreviewBarItem16.Caption = "上一页";
            this.prnumPreviewBarItem16.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ShowPrevPage;
            this.prnumPreviewBarItem16.Enabled = false;
            this.prnumPreviewBarItem16.Hint = "上一页";
            this.prnumPreviewBarItem16.Id = 23;
            this.prnumPreviewBarItem16.ImageIndex = 8;
            this.prnumPreviewBarItem16.Name = "prnumPreviewBarItem16";
            // 
            // prnumPreviewBarItem17
            // 
            this.prnumPreviewBarItem17.Caption = "下一页";
            this.prnumPreviewBarItem17.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ShowNextPage;
            this.prnumPreviewBarItem17.Enabled = false;
            this.prnumPreviewBarItem17.Hint = "下一页";
            this.prnumPreviewBarItem17.Id = 24;
            this.prnumPreviewBarItem17.ImageIndex = 9;
            this.prnumPreviewBarItem17.Name = "prnumPreviewBarItem17";
            // 
            // prnumPreviewBarItem18
            // 
            this.prnumPreviewBarItem18.Caption = "尾页";
            this.prnumPreviewBarItem18.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ShowLastPage;
            this.prnumPreviewBarItem18.Enabled = false;
            this.prnumPreviewBarItem18.Hint = "尾页";
            this.prnumPreviewBarItem18.Id = 25;
            this.prnumPreviewBarItem18.ImageIndex = 10;
            this.prnumPreviewBarItem18.Name = "prnumPreviewBarItem18";
            // 
            // prnumPreviewBarItem19
            // 
            this.prnumPreviewBarItem19.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
            this.prnumPreviewBarItem19.Caption = "多页";
            this.prnumPreviewBarItem19.Command = DevExpress.XtraPrinting.PrintingSystemCommand.MultiplePages;
            this.prnumPreviewBarItem19.Enabled = false;
            this.prnumPreviewBarItem19.Hint = "多页";
            this.prnumPreviewBarItem19.Id = 26;
            this.prnumPreviewBarItem19.ImageIndex = 11;
            this.prnumPreviewBarItem19.Name = "prnumPreviewBarItem19";
            // 
            // prnumPreviewBarItem20
            // 
            this.prnumPreviewBarItem20.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
            this.prnumPreviewBarItem20.Caption = "背景色";
            this.prnumPreviewBarItem20.Command = DevExpress.XtraPrinting.PrintingSystemCommand.FillBackground;
            this.prnumPreviewBarItem20.Enabled = false;
            this.prnumPreviewBarItem20.Hint = "背景色";
            this.prnumPreviewBarItem20.Id = 27;
            this.prnumPreviewBarItem20.ImageIndex = 12;
            this.prnumPreviewBarItem20.Name = "prnumPreviewBarItem20";
            // 
            // prnumPreviewBarItem21
            // 
            this.prnumPreviewBarItem21.Caption = "水印...";
            this.prnumPreviewBarItem21.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Watermark;
            this.prnumPreviewBarItem21.Enabled = false;
            this.prnumPreviewBarItem21.Hint = "水印";
            this.prnumPreviewBarItem21.Id = 28;
            this.prnumPreviewBarItem21.ImageIndex = 21;
            this.prnumPreviewBarItem21.Name = "prnumPreviewBarItem21";
            // 
            // prnumPreviewBarItem22
            // 
            this.prnumPreviewBarItem22.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
            this.prnumPreviewBarItem22.Caption = "导出...";
            this.prnumPreviewBarItem22.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportFile;
            this.prnumPreviewBarItem22.Enabled = false;
            this.prnumPreviewBarItem22.Hint = "导出...";
            this.prnumPreviewBarItem22.Id = 29;
            this.prnumPreviewBarItem22.ImageIndex = 18;
            this.prnumPreviewBarItem22.Name = "prnumPreviewBarItem22";
            // 
            // prnumPreviewBarItem23
            // 
            this.prnumPreviewBarItem23.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
            this.prnumPreviewBarItem23.Caption = "Send via E-Mail...";
            this.prnumPreviewBarItem23.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendFile;
            this.prnumPreviewBarItem23.Enabled = false;
            this.prnumPreviewBarItem23.Hint = "Send via E-Mail...";
            this.prnumPreviewBarItem23.Id = 30;
            this.prnumPreviewBarItem23.ImageIndex = 17;
            this.prnumPreviewBarItem23.Name = "prnumPreviewBarItem23";
            // 
            // prnumPreviewBarItem24
            // 
            this.prnumPreviewBarItem24.Caption = "E&xit";
            this.prnumPreviewBarItem24.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ClosePreview;
            this.prnumPreviewBarItem24.Enabled = false;
            this.prnumPreviewBarItem24.Hint = "Close Preview";
            this.prnumPreviewBarItem24.Id = 31;
            this.prnumPreviewBarItem24.ImageIndex = 13;
            this.prnumPreviewBarItem24.Name = "prnumPreviewBarItem24";
            // 
            // previewBar1
            // 
            this.previewBar1.BarName = "Status Bar";
            this.previewBar1.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom;
            this.previewBar1.DockCol = 0;
            this.previewBar1.DockRow = 0;
            this.previewBar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Bottom;
            this.previewBar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewStaticItem),
            new DevExpress.XtraBars.LinkPersistInfo(this.barStaticItem, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.progressBarEditItem),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem25),
            new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewStaticItem1, true)});
            this.previewBar1.OptionsBar.AllowQuickCustomization = false;
            this.previewBar1.OptionsBar.DrawDragBorder = false;
            this.previewBar1.OptionsBar.UseWholeRow = true;
            this.previewBar1.Text = "Status Bar";
            // 
            // prnumPreviewStaticItem
            // 
            this.prnumPreviewStaticItem.Border = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.prnumPreviewStaticItem.Caption = "Page 0 of 0";
            this.prnumPreviewStaticItem.Id = 0;
            this.prnumPreviewStaticItem.LeftIndent = 1;
            this.prnumPreviewStaticItem.Name = "prnumPreviewStaticItem";
            this.prnumPreviewStaticItem.RightIndent = 1;
            this.prnumPreviewStaticItem.TextAlignment = System.Drawing.StringAlignment.Near;
            this.prnumPreviewStaticItem.Type = "PageOfPages";
            // 
            // barStaticItem
            // 
            this.barStaticItem.Border = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.barStaticItem.Id = 1;
            this.barStaticItem.Name = "barStaticItem";
            this.barStaticItem.TextAlignment = System.Drawing.StringAlignment.Near;
            this.barStaticItem.Visibility = DevExpress.XtraBars.BarItemVisibility.OnlyInRuntime;
            // 
            // progressBarEditItem
            // 
            this.progressBarEditItem.Edit = this.repositoryItemProgressBar1;
            this.progressBarEditItem.EditHeight = 12;
            this.progressBarEditItem.Id = 2;
            this.progressBarEditItem.Name = "progressBarEditItem";
            this.progressBarEditItem.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            this.progressBarEditItem.Width = 150;
            // 
            // repositoryItemProgressBar1
            // 
            this.repositoryItemProgressBar1.Name = "repositoryItemProgressBar1";
            // 
            // prnumPreviewBarItem25
            // 
            this.prnumPreviewBarItem25.Caption = "Stop";
            this.prnumPreviewBarItem25.Command = DevExpress.XtraPrinting.PrintingSystemCommand.StopPageBuilding;
            this.prnumPreviewBarItem25.Enabled = false;
            this.prnumPreviewBarItem25.Hint = "Stop";
            this.prnumPreviewBarItem25.Id = 3;
            this.prnumPreviewBarItem25.Name = "prnumPreviewBarItem25";
            this.prnumPreviewBarItem25.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            // 
            // barButtonItem
            // 
            this.barButtonItem.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Left;
            this.barButtonItem.Enabled = false;
            this.barButtonItem.Id = 4;
            this.barButtonItem.Name = "barButtonItem";
            this.barButtonItem.Visibility = DevExpress.XtraBars.BarItemVisibility.OnlyInRuntime;
            // 
            // prnumPreviewStaticItem1
            // 
            this.prnumPreviewStaticItem1.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
            this.prnumPreviewStaticItem1.Border = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.prnumPreviewStaticItem1.Caption = "Zoom Factor: 100%";
            this.prnumPreviewStaticItem1.Id = 5;
            this.prnumPreviewStaticItem1.Name = "prnumPreviewStaticItem1";
            this.prnumPreviewStaticItem1.TextAlignment = System.Drawing.StringAlignment.Near;
            this.prnumPreviewStaticItem1.Type = "ZoomFactor";
            this.prnumPreviewStaticItem1.Width = 40;
            // 
            // previewBar2
            // 
            this.previewBar2.BarName = "Main Menu";
            this.previewBar2.DockCol = 0;
            this.previewBar2.DockRow = 0;
            this.previewBar2.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
            this.previewBar2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.xKuLshmXi),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewSubItem),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewSubItem2)});
            this.previewBar2.OptionsBar.AllowQuickCustomization = false;
            this.previewBar2.OptionsBar.MultiLine = true;
            this.previewBar2.OptionsBar.UseWholeRow = true;
            this.previewBar2.Text = "Main Menu";
            this.previewBar2.Visible = false;
            // 
            // xKuLshmXi
            // 
            this.xKuLshmXi.Caption = "&File";
            this.xKuLshmXi.Command = DevExpress.XtraPrinting.PrintingSystemCommand.File;
            this.xKuLshmXi.Id = 32;
            this.xKuLshmXi.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem8),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem6),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem7),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem22, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem23),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem24, true)});
            this.xKuLshmXi.Name = "xKuLshmXi";
            // 
            // prnumPreviewSubItem
            // 
            this.prnumPreviewSubItem.Caption = "&View";
            this.prnumPreviewSubItem.Command = DevExpress.XtraPrinting.PrintingSystemCommand.View;
            this.prnumPreviewSubItem.Id = 33;
            this.prnumPreviewSubItem.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewSubItem1, true),
            new DevExpress.XtraBars.LinkPersistInfo(this.barToolbarsListItem, true)});
            this.prnumPreviewSubItem.Name = "prnumPreviewSubItem";
            // 
            // prnumPreviewSubItem1
            // 
            this.prnumPreviewSubItem1.Caption = "&Page Layout";
            this.prnumPreviewSubItem1.Command = DevExpress.XtraPrinting.PrintingSystemCommand.PageLayout;
            this.prnumPreviewSubItem1.Id = 35;
            this.prnumPreviewSubItem1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem26),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem27)});
            this.prnumPreviewSubItem1.Name = "prnumPreviewSubItem1";
            // 
            // prnumPreviewBarItem26
            // 
            this.prnumPreviewBarItem26.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
            this.prnumPreviewBarItem26.Caption = "&Facing";
            this.prnumPreviewBarItem26.Command = DevExpress.XtraPrinting.PrintingSystemCommand.PageLayoutFacing;
            this.prnumPreviewBarItem26.Enabled = false;
            this.prnumPreviewBarItem26.GroupIndex = 100;
            this.prnumPreviewBarItem26.Id = 36;
            this.prnumPreviewBarItem26.Name = "prnumPreviewBarItem26";
            // 
            // prnumPreviewBarItem27
            // 
            this.prnumPreviewBarItem27.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
            this.prnumPreviewBarItem27.Caption = "&Continuous";
            this.prnumPreviewBarItem27.Command = DevExpress.XtraPrinting.PrintingSystemCommand.PageLayoutContinuous;
            this.prnumPreviewBarItem27.Enabled = false;
            this.prnumPreviewBarItem27.GroupIndex = 100;
            this.prnumPreviewBarItem27.Id = 37;
            this.prnumPreviewBarItem27.Name = "prnumPreviewBarItem27";
            // 
            // barToolbarsListItem
            // 
            this.barToolbarsListItem.Caption = "Bars";
            this.barToolbarsListItem.Id = 38;
            this.barToolbarsListItem.Name = "barToolbarsListItem";
            // 
            // prnumPreviewSubItem2
            // 
            this.prnumPreviewSubItem2.Caption = "&Background";
            this.prnumPreviewSubItem2.Command = DevExpress.XtraPrinting.PrintingSystemCommand.Background;
            this.prnumPreviewSubItem2.Id = 34;
            this.prnumPreviewSubItem2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem20),
            new DevExpress.XtraBars.LinkPersistInfo(this.prnumPreviewBarItem21)});
            this.prnumPreviewSubItem2.Name = "prnumPreviewSubItem2";
            // 
            // barDockControl
            // 
            this.barDockControl.Dock = System.Windows.Forms.DockStyle.Top;
            this.barDockControl.Location = new System.Drawing.Point(0, 0);
            this.barDockControl.Size = new System.Drawing.Size(849, 53);
            // 
            // barDockControl1
            // 
            this.barDockControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.barDockControl1.Location = new System.Drawing.Point(0, 370);
            this.barDockControl1.Size = new System.Drawing.Size(849, 26);
            // 
            // barDockControl2
            // 
            this.barDockControl2.Dock = System.Windows.Forms.DockStyle.Left;
            this.barDockControl2.Location = new System.Drawing.Point(0, 53);
            this.barDockControl2.Size = new System.Drawing.Size(0, 317);
            // 
            // gNojcAwmb
            // 
            this.gNojcAwmb.Dock = System.Windows.Forms.DockStyle.Right;
            this.gNojcAwmb.Location = new System.Drawing.Point(849, 53);
            this.gNojcAwmb.Size = new System.Drawing.Size(0, 317);
            // 
            // prnumPreviewBarCheckItem
            // 
            this.prnumPreviewBarCheckItem.Caption = "PDF 文件";
            this.prnumPreviewBarCheckItem.Checked = true;
            this.prnumPreviewBarCheckItem.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportPdf;
            this.prnumPreviewBarCheckItem.Enabled = false;
            this.prnumPreviewBarCheckItem.GroupIndex = 2;
            this.prnumPreviewBarCheckItem.Hint = "PDF 文件";
            this.prnumPreviewBarCheckItem.Id = 39;
            this.prnumPreviewBarCheckItem.Name = "prnumPreviewBarCheckItem";
            // 
            // prnumPreviewBarCheckItem1
            // 
            this.prnumPreviewBarCheckItem1.Caption = "HTML 文件";
            this.prnumPreviewBarCheckItem1.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportHtm;
            this.prnumPreviewBarCheckItem1.Enabled = false;
            this.prnumPreviewBarCheckItem1.GroupIndex = 2;
            this.prnumPreviewBarCheckItem1.Hint = "HTML 文件";
            this.prnumPreviewBarCheckItem1.Id = 40;
            this.prnumPreviewBarCheckItem1.Name = "prnumPreviewBarCheckItem1";
            // 
            // prnumPreviewBarCheckItem2
            // 
            this.prnumPreviewBarCheckItem2.Caption = "MHT 文件";
            this.prnumPreviewBarCheckItem2.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportMht;
            this.prnumPreviewBarCheckItem2.Enabled = false;
            this.prnumPreviewBarCheckItem2.GroupIndex = 2;
            this.prnumPreviewBarCheckItem2.Hint = "MHT 文件";
            this.prnumPreviewBarCheckItem2.Id = 41;
            this.prnumPreviewBarCheckItem2.Name = "prnumPreviewBarCheckItem2";
            // 
            // prnumPreviewBarCheckItem3
            // 
            this.prnumPreviewBarCheckItem3.Caption = "RTF 文件";
            this.prnumPreviewBarCheckItem3.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportRtf;
            this.prnumPreviewBarCheckItem3.Enabled = false;
            this.prnumPreviewBarCheckItem3.GroupIndex = 2;
            this.prnumPreviewBarCheckItem3.Hint = "RTF 文件";
            this.prnumPreviewBarCheckItem3.Id = 42;
            this.prnumPreviewBarCheckItem3.Name = "prnumPreviewBarCheckItem3";
            // 
            // prnumPreviewBarCheckItem4
            // 
            this.prnumPreviewBarCheckItem4.Caption = "XLS 文件";
            this.prnumPreviewBarCheckItem4.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportXls;
            this.prnumPreviewBarCheckItem4.Enabled = false;
            this.prnumPreviewBarCheckItem4.GroupIndex = 2;
            this.prnumPreviewBarCheckItem4.Hint = "XLS 文件";
            this.prnumPreviewBarCheckItem4.Id = 43;
            this.prnumPreviewBarCheckItem4.Name = "prnumPreviewBarCheckItem4";
            // 
            // prnumPreviewBarCheckItem5
            // 
            this.prnumPreviewBarCheckItem5.Caption = "XLSX 文件";
            this.prnumPreviewBarCheckItem5.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportXlsx;
            this.prnumPreviewBarCheckItem5.Enabled = false;
            this.prnumPreviewBarCheckItem5.GroupIndex = 2;
            this.prnumPreviewBarCheckItem5.Hint = "XLSX 文件";
            this.prnumPreviewBarCheckItem5.Id = 44;
            this.prnumPreviewBarCheckItem5.Name = "prnumPreviewBarCheckItem5";
            // 
            // prnumPreviewBarCheckItem6
            // 
            this.prnumPreviewBarCheckItem6.Caption = "CSV 文件";
            this.prnumPreviewBarCheckItem6.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportCsv;
            this.prnumPreviewBarCheckItem6.Enabled = false;
            this.prnumPreviewBarCheckItem6.GroupIndex = 2;
            this.prnumPreviewBarCheckItem6.Hint = "CSV 文件";
            this.prnumPreviewBarCheckItem6.Id = 45;
            this.prnumPreviewBarCheckItem6.Name = "prnumPreviewBarCheckItem6";
            // 
            // prnumPreviewBarCheckItem7
            // 
            this.prnumPreviewBarCheckItem7.Caption = "Text 文件";
            this.prnumPreviewBarCheckItem7.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportTxt;
            this.prnumPreviewBarCheckItem7.Enabled = false;
            this.prnumPreviewBarCheckItem7.GroupIndex = 2;
            this.prnumPreviewBarCheckItem7.Hint = "Text 文件";
            this.prnumPreviewBarCheckItem7.Id = 46;
            this.prnumPreviewBarCheckItem7.Name = "prnumPreviewBarCheckItem7";
            // 
            // prnumPreviewBarCheckItem8
            // 
            this.prnumPreviewBarCheckItem8.Caption = "Image 文件";
            this.prnumPreviewBarCheckItem8.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportGraphic;
            this.prnumPreviewBarCheckItem8.Enabled = false;
            this.prnumPreviewBarCheckItem8.GroupIndex = 2;
            this.prnumPreviewBarCheckItem8.Hint = "Image 文件";
            this.prnumPreviewBarCheckItem8.Id = 47;
            this.prnumPreviewBarCheckItem8.Name = "prnumPreviewBarCheckItem8";
            // 
            // prnumPreviewBarCheckItem9
            // 
            this.prnumPreviewBarCheckItem9.Caption = "PDF 文件";
            this.prnumPreviewBarCheckItem9.Checked = true;
            this.prnumPreviewBarCheckItem9.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendPdf;
            this.prnumPreviewBarCheckItem9.Enabled = false;
            this.prnumPreviewBarCheckItem9.GroupIndex = 1;
            this.prnumPreviewBarCheckItem9.Hint = "PDF 文件";
            this.prnumPreviewBarCheckItem9.Id = 48;
            this.prnumPreviewBarCheckItem9.Name = "prnumPreviewBarCheckItem9";
            // 
            // prnumPreviewBarCheckItem10
            // 
            this.prnumPreviewBarCheckItem10.Caption = "MHT 文件";
            this.prnumPreviewBarCheckItem10.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendMht;
            this.prnumPreviewBarCheckItem10.Enabled = false;
            this.prnumPreviewBarCheckItem10.GroupIndex = 1;
            this.prnumPreviewBarCheckItem10.Hint = "MHT 文件";
            this.prnumPreviewBarCheckItem10.Id = 49;
            this.prnumPreviewBarCheckItem10.Name = "prnumPreviewBarCheckItem10";
            // 
            // prnumPreviewBarCheckItem11
            // 
            this.prnumPreviewBarCheckItem11.Caption = "RTF 文件";
            this.prnumPreviewBarCheckItem11.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendRtf;
            this.prnumPreviewBarCheckItem11.Enabled = false;
            this.prnumPreviewBarCheckItem11.GroupIndex = 1;
            this.prnumPreviewBarCheckItem11.Hint = "RTF 文件";
            this.prnumPreviewBarCheckItem11.Id = 50;
            this.prnumPreviewBarCheckItem11.Name = "prnumPreviewBarCheckItem11";
            // 
            // prnumPreviewBarCheckItem12
            // 
            this.prnumPreviewBarCheckItem12.Caption = "XLS 文件";
            this.prnumPreviewBarCheckItem12.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendXls;
            this.prnumPreviewBarCheckItem12.Enabled = false;
            this.prnumPreviewBarCheckItem12.GroupIndex = 1;
            this.prnumPreviewBarCheckItem12.Hint = "XLS 文件";
            this.prnumPreviewBarCheckItem12.Id = 51;
            this.prnumPreviewBarCheckItem12.Name = "prnumPreviewBarCheckItem12";
            // 
            // prnumPreviewBarCheckItem13
            // 
            this.prnumPreviewBarCheckItem13.Caption = "XLSX 文件";
            this.prnumPreviewBarCheckItem13.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendXlsx;
            this.prnumPreviewBarCheckItem13.Enabled = false;
            this.prnumPreviewBarCheckItem13.GroupIndex = 1;
            this.prnumPreviewBarCheckItem13.Hint = "XLSX 文件";
            this.prnumPreviewBarCheckItem13.Id = 52;
            this.prnumPreviewBarCheckItem13.Name = "prnumPreviewBarCheckItem13";
            // 
            // prnumPreviewBarCheckItem14
            // 
            this.prnumPreviewBarCheckItem14.Caption = "CSV 文件";
            this.prnumPreviewBarCheckItem14.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendCsv;
            this.prnumPreviewBarCheckItem14.Enabled = false;
            this.prnumPreviewBarCheckItem14.GroupIndex = 1;
            this.prnumPreviewBarCheckItem14.Hint = "CSV 文件";
            this.prnumPreviewBarCheckItem14.Id = 53;
            this.prnumPreviewBarCheckItem14.Name = "prnumPreviewBarCheckItem14";
            // 
            // prnumPreviewBarCheckItem15
            // 
            this.prnumPreviewBarCheckItem15.Caption = "Text 文件";
            this.prnumPreviewBarCheckItem15.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendTxt;
            this.prnumPreviewBarCheckItem15.Enabled = false;
            this.prnumPreviewBarCheckItem15.GroupIndex = 1;
            this.prnumPreviewBarCheckItem15.Hint = "Text 文件";
            this.prnumPreviewBarCheckItem15.Id = 54;
            this.prnumPreviewBarCheckItem15.Name = "prnumPreviewBarCheckItem15";
            // 
            // prnumPreviewBarCheckItem16
            // 
            this.prnumPreviewBarCheckItem16.Caption = "Image 文件";
            this.prnumPreviewBarCheckItem16.Command = DevExpress.XtraPrinting.PrintingSystemCommand.SendGraphic;
            this.prnumPreviewBarCheckItem16.Enabled = false;
            this.prnumPreviewBarCheckItem16.GroupIndex = 1;
            this.prnumPreviewBarCheckItem16.Hint = "Image 文件";
            this.prnumPreviewBarCheckItem16.Id = 55;
            this.prnumPreviewBarCheckItem16.Name = "prnumPreviewBarCheckItem16";
            // 
            // PreviewControl
            // 
            this.Controls.Add(this.panelControl);
            this.Controls.Add(this.barDockControl2);
            this.Controls.Add(this.gNojcAwmb);
            this.Controls.Add(this.barDockControl1);
            this.Controls.Add(this.barDockControl);
            this.Name = "PreviewControl";
            this.Size = new System.Drawing.Size(849, 396);
            ((System.ComponentModel.ISupportInitialize)(this.panelControl)).EndInit();
            this.panelControl.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
            this.panelControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.prnumBarManager)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.printPreviewRepositoryItemComboBox1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemProgressBar1)).EndInit();
            this.ResumeLayout(false);

        }

        private void method2(Form form, Form form1)
        {
            form.MinimumSize = form1.MinimumSize;
            if (form1.WindowState == FormWindowState.Normal)
            {
                form.Bounds = form1.Bounds;
            }
            form.WindowState = form1.WindowState;
            form1.Visible = false;
            form.ShowDialog();
            form1.Visible = true;
        }

        private void method3()
        {
            string fileName = smethod(base.fReport, "sav");
            base.fReport.PrintingSystem.ExecCommand(PrintingSystemCommand.StopPageBuilding);
            base.fReport.SaveLayout(fileName);
            using (XtraReport report = XtraReport.FromFile(fileName, true))
            {
                XRDesignFormExBase form = new CustomDesignForm();
                form.OpenReport(report);
                form.FileName = base.FileName;
                this.method2(form, base.FindForm());
                if ((form.FileName != base.FileName) && File.Exists(form.FileName))
                {
                    File.Copy(form.FileName, base.FileName, true);
                }
                form.OpenReport((XtraReport) null);
                form.Dispose();
            }
            if (File.Exists(base.FileName))
            {
                base.fReport.LoadLayout(base.FileName);
                File.Delete(base.FileName);
                base.fReport.CreateDocument(true);
            }
            this.ShowParameters();
            File.Delete(fileName);
            this.InitializeControls();
        }

        private void method4()
        {
            base.fReport.PrintingSystem.ExecCommand(PrintingSystemCommand.StopPageBuilding);
            using (XtraReport report = XtraReport.FromFile(base.FileName, true))
            {
                XRDesignFormExBase form = new CustomDesignForm();
                form.OpenReport(report);
                form.FileName = base.FileName;
                this.method2(form, base.FindForm());
                form.Dispose();
            }
            if (File.Exists(base.FileName))
            {
                base.fReport.LoadLayout(base.FileName);
                base.fReport.CreateDocument(true);
            }
            this.ShowParameters();
            this.InitializeControls();
        }

        private void method5(object sender, EventArgs e)
        {
            this.method4();
        }

        public void SetEditBarVisible(bool isVisible)
        {
            this.SetEditButton(this.prnumBarManager);
            Bar bar = this.prnumBarManager.Bars[0];
            bar.Visible = isVisible;
        }

        protected void SetEditButton(PrintBarManager manager)
        {
            Bar bar = manager.Bars[0];
            bar.DockStyle = BarDockStyle.Top;
            BarButtonItem item = new BarButtonItem(manager, "编辑");
            item.ItemClick += new ItemClickEventHandler(this.method);
            bar.AddItem(item);
        }

        public void SetPrintBarVisible(bool isVisible)
        {
            this.panelControl1.Visible = isVisible;
        }

        protected void ShowParameters()
        {
            if (base.fReport != null)
            {
                base.fReport.PrintingSystem.ExecCommand(PrintingSystemCommand.Parameters, new object[] { true });
            }
        }

        private void simpleButton_Click(object sender, EventArgs e)
        {
            base.fReport.PrintDialog();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            SaveFileDialog dialog = new SaveFileDialog();
            dialog.Title = "导出Excel";
            dialog.Filter = "Excel文件(*.xls)|*.xls";
            if (dialog.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                string fileName = dialog.FileName;
                base.fReport.ExportToXls(fileName);
            }
        }

        private static string smethod(XtraReport xtraReport, string str1)
        {
            Assembly executingAssembly = Assembly.GetExecutingAssembly();
            string name = xtraReport.Name;
            if (name.Length == 0)
            {
                name = xtraReport.GetType().Name;
            }
            return Path.Combine(Path.GetDirectoryName(executingAssembly.Location), name + "." + str1);
        }

        public override XtraReport Report
        {
            get
            {
                return base.fReport;
            }
            set
            {
                if (base.fReport != value)
                {
                    if (base.fReport != null)
                    {
                        base.fReport.Dispose();
                    }
                    base.fReport = value;
                    if (base.fReport != null)
                    {
                        base.Invalidate();
                        base.Update();
                        base.fReport.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.ClosePreview, DevExpress.XtraPrinting.CommandVisibility.None);
                        base.fReport.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Open, DevExpress.XtraPrinting.CommandVisibility.None);
                        base.fReport.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.SendFile, DevExpress.XtraPrinting.CommandVisibility.None);
                        base.fReport.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Save, DevExpress.XtraPrinting.CommandVisibility.None);
                        this.printControl.PrintingSystem = base.fReport.PrintingSystem;
                        base.fReport.CreateDocument(true);
                    }
                }
            }
        }

        public class DesignForm : XRDesignFormEx
        {
            protected override void RestoreLayout()
            {
            }

            protected override void SaveLayout()
            {
            }
        }
    }
}

